package com.geektime.hello.mongo;

import lombok.Data;

import javax.persistence.Id;
import java.util.Date;

@Data
public class UserDO {
    @Id
    private Integer id;
    private String username;
    private String password;
    private Date createTime;
    private Profile profile;

    @Data
    public static class Profile {
        private String nickname;
        private Integer gender;
    }
}
